package com.cjw.campus.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 学校表
 * </p>
 *
 * @author cjw
 * @since 2023-02-28
 */
@Getter
@Setter
@TableName("school_table")
@Schema(name = "SchoolTable", description = "$!{table.comment}")
public class SchoolTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "学校ID")
    @TableId(value = "school_id", type = IdType.AUTO)
    private Long schoolId;

    @Schema(description = "学校名称")
    private String schoolName;

    @Schema(description = "学校电话")
    private Long schoolTelephone;

    @Schema(description = "学校邮箱")
    private String schoolEmail;

    @Schema(description = "学校地址")
    private String schoolAddress;

    @Schema(description = "学校LOGO")
    private String schoolLogo;

    @Schema(description = "学校编码")
    private String schoolCode;

    @Schema(description = "学校父ID")
    private Long schoolFarcherId;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createor;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;

    @Schema(description = "删除标志")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleteFlag;
}
